-- configurable settings

-- demand is the technic power consumption
-- width_side are the amount of blocks to each side (+ it's own block thus the width of a farm is (2xside)+1 )
-- length would be the length of the farm from the front side (face side)

-- chance to plant, higher number is more delay
autofarmer.planter_delay = 4

-- LV planter settings
autofarmer.LV_planter_demand = 6000
autofarmer.LV_planter_width_side = 2
autofarmer.LV_planter_length = 6

-- MV planter settings
autofarmer.MV_planter_demand = 11000
autofarmer.MV_planter_width_side = 3
autofarmer.MV_planter_length = 15

-- HV planter settings
autofarmer.HV_planter_demand = 22000
-- farm size of HV planter is adaptable ingame



-- Harvester Settings
autofarmer.harvester_min_demand = 4000
autofarmer.harvester_demand_per_node = 4

-- delay is the time between possible harvest in seconds 
-- (including randomness, unless set to 1 then every second harvest is checked)
autofarmer.MV_harvester_delay = 5

-- depth is how many blocks below the harvester will be harvested, default 1 so it can be stacked on planter
autofarmer.MV_harvester_max_depth = 1


-- PLANTER / HARVESTER allowed node settings

-- add/remove new/custom mod plants below, keep the syntax [""] = "",
-- inluding the comma
-- names should be the following: ["full-name-in-game"] = "modname:plantname_1"
-- note to add _1 to the plant for first stage unless they are trees
autofarmer.seeds_nodes = {
	["farming:seed_wheat"]= "farming:wheat_1",
	["farming:seed_cotton"]= "farming:cotton_1",
	["farming:seed_barley"]= "farming:barley_1",
	
	-- old deprecated?/legacy?
	["farming:pumpkin_seed"]= "farming:pumpkin_1",
	["farming:rhubarb_seed"]= "farming:rhubarb_1",
	["farming:strawberry_seed"]="farming:strawberry_1",
	["farming:potato_seed"]="farming:potato_1",
	["farming:tomato_seed"]="farming:tomato_1",
	["farming:orange_seed"]="farming:orange_1",
	["farming:carrot_seed"]="farming:carrot_1",

	-- added hemp
	["hemp:seed_hemp"]="hemp:hemp_1",
	
	-- farming_plus changes?
	["farming:blueberries"]="farming:blueberry_1",
	["farming:cocoa_sapling"]="farming:cocoa_sapling",
	["farming:coffee_beans"]="farming:coffee_1",
	["farming:corn"]="farming:corn_1",
	["farming:cucumber"]="farming:cucumber_1",
	["farming:carrot"]="farming:carrot_1",
	["farming:grapes"]="farming:grapes_1",
	["farming:melon_slice"]="farming:melon_1",
	["farming:pumpkin"]="farming:pumpkin_1",
	["farming:raspberries"]="farming:raspberry_1",
	["farming:rhubarb"]="farming:rhubarb_1",
	["farming:tomato"]="farming:tomato_1",
	["farming:potato"]="farming:potato_1",
	

	-- trees usually keep their same name (sapling -> sapling)
	["default:sapling"] = "default:sapling",
	["default:junglesapling"] = "default:junglesapling",
	["default:pine_sapling"] = "default:pine_sapling",
	["default:acacia_sapling"] = "default:acacia_sapling",
	["default:aspen_sapling"] = "default:aspen_sapling",

	["moretrees:birch_sapling"]="moretrees:birch_sapling",
	["moretrees:spruce_sapling"]="moretrees:spruce_sapling",
	["moretrees:fir_sapling"]="moretrees:fir_sapling",
	["moretrees:beech_sapling"]="moretrees:beech_sapling",
	["moretrees:apple_tree_sapling"]="moretrees:apple_tree_sapling",
	["moretrees:oak_sapling"]="moretrees:oak_sapling",
	["moretrees:sequoia_sapling"]="moretrees:sequoia_sapling",
	["moretrees:palm_sapling"]="moretrees:palm_sapling",
	["moretrees:pine_sapling"]="moretrees:pine_sapling",
	["moretrees:willow_sapling"]="moretrees:willow_sapling",
	["moretrees:rubber_tree_sapling"]="moretrees:rubber_tree_sapling",



}
-- END OF SEED_NODES


-- HARVESTER ALLOWED NODES
-- the number at the end is the full grown stage, differs from plant to plant, look for it in game
autofarmer.harvester_dig_nodes = {
	["farming:wheat_8"] = true,
	["farming:cotton_8"] = true,
	["farming:barley_7"] = true,

	-- added hemp
	["hemp:hemp_8"] = true,
	
	-- farming_plus/farming
	["farming:tomato_8"] = true,
	["farming:coffee_5"] = true,
	["farming:corn_8"] = true,
	["farming:pumpkin_8"] = true,
	["farming:carrot_8"] = true,
	["farming:melon_8"] = true,
	["farming:cucumber_4"] = true,
	["farming:raspberry_4"] = true,
	["farming:blueberry_4"] = true,
	["farming:potato_4"] = true,
	["farming:rhubarb_3"] = true,
	["farming:cocoa_3"] = true,

	-- TODO things on stakes?
-- 	["farming:grapes_8"] = true,
--	["farming:beanpole_5"] = true,

	-- fruits from trees
	["default:apple"] = true,
	["moretrees:coconut"] = true,
	["moretrees:fir_cone"] = true,
	["moretrees:cedar_cone"] = true,
	["moretrees:spruce_cone"] = true,
	["moretrees:acorn"] =  true,

	-- trees
	["default:tree"] = true,
	["default:acacia_tree"] = true,
	["default:pine_tree"] = true,	
	["default:aspen_tree"] = true,
	["default:jungle_tree"] = false,	-- carries cocoa beans?

	-- moretrees
	-- don't cut fruit bearing trees? (yet..)
	["moretrees:apple_tree_trunk"] = false,		-- apples 
	["moretrees:palm_trunk"] = false,		-- coconuts
	["moretrees:fir_trunk"] = false,		-- fir cones
	["moretrees:cedar_trunk"] = false,		-- cedar cone
	["moretrees:spruce_trunk"] = false,		-- spruce cone
	["moretrees:oak_trunk"] = true,			-- acorn

	["moretrees:jungletree_trunk"] = true,
	["moretrees:rubber_tree_trunk"] = true,
	["moretrees:birch_trunk"] = true,
	["moretrees:willow_trunk"] = true,
	["moretrees:beech_trunk"] = true,
	["moretrees:sequoia_trunk"] = true,



-- TODO add plantlife mod?, look for other farming mods

	-- ["ferns:fern_trunk"] = true,
	-- plantlife
	--["bushes:blackberry_bush"] = true,
	--["bushes:raspberry_bush"] = true,

} 
-- END OF HARVESTER NODES





